using Godot;
using System;

public partial class SceneManager : Node
{
    public static SceneManager Instance;

    Loading loading = ResourceLoader.Load<PackedScene>(Path.SCENE_LOADING).Instantiate<Loading>();

    public override void _Ready()
    {
        base._Ready();
        Instance = this;
        AddChild(loading);
    }

    public void LoadScene(string path)
    {
        loading.StartLoad(path);
    }
}
